package com.kx.center.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kx.center.common.JsonDatetimeSerializer;

// 商品
@JsonIgnoreProperties({
	"typeId", "typeName", "addtime"
})
public class Goods {
	
	private Integer id;
	private String sku;
	private String name;
	private Integer typeId;
	private String typeName;
	private Integer outsourcing;
	private Date addtime;
	private Integer storage;
	private Integer refStorage;
	public Integer getRefStorage() {
		return refStorage;
	}
	public void setRefStorage(Integer refStorage) {
		this.refStorage = refStorage;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	
	public Integer getStorage() {
		return storage;
	}
	public void setStorage(Integer storage) {
		this.storage = storage;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getOutsourcing() {
		return outsourcing;
	}
	public void setOutsourcing(Integer outsourcing) {
		this.outsourcing = outsourcing;
	}
	@JsonSerialize(using = JsonDatetimeSerializer.class)
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Integer getTypeId() {
		return typeId;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
